/* 
 * File:   matrice.h
 * Author: jorisgirardot
 *
 * Created on 15 novembre 2012, 11:05
 */

#ifndef MATRICE_H
#define	MATRICE_H

typedef struct Matrix Matrix;
struct Matrix{
    int size; // Nombre de sommets
    int **table;
};


void printMatrix(Matrix* matrix);

int matrix_addVertex(int nodeA, int nodeB, Matrix* matrix);
int matrix_removeVertex(int nodeA, int nodeB, Matrix* matrix);
int matrix_existVertex(int nodeA, int nodeB, Matrix* matrix);

int matrix_addNode(Matrix* matrix);
int matrix_removeNode(int node, Matrix* matrix);

int** matrix_createTable(int size);
void matrix_cloneTable(int **source, int** target, int size);

#endif	/* MATRICE_H */

